#ifndef SNAKE_H
#define SNAKE_H

#include <QtOpenGL>
#include "linkedlist.h"

class Snake : public QGLWidget
{
    Q_OBJECT
public:
    Snake();
    void initializeGL();
    void resizeGL(int width, int height);
    void paintGL();
    void keyPressEvent(QKeyEvent *event);

signals:

public slots:
    void update(); // if this slot is needed for the update function
                   // you can read about slots and signals by pressing F1.

private:
    LinkedList*  snaky;
    QTimer *m_timer;

    BOOL eat;
    int move;

};

#endif // SNAKE_H
